package com.bawei.module_home.ui.sign.repository

import com.bawei.module_home.http.Api
import com.bawei.module_home.http.HomeNetModule
import com.bawei.module_home.model.SignParam
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.flow.flow
import kotlinx.coroutines.flow.flowOn
import javax.inject.Inject
/**
 *author：yjk
 *description:
 *date：2025/6/12
*/
class SignRepository @Inject constructor() {
    @Inject
    @HomeNetModule.CommonHomeApi
    lateinit var api: Api

    fun postSign(signParam:SignParam)= flow {
        emit(api.postSign(signParam))
    }.flowOn(Dispatchers.IO)
}